//
//  InputCell.swift
//  ShareUmbrella
//
//  Created by duanmingyang on 2017/9/17.
//  Copyright © 2017年 尧尚信息科技. All rights reserved.
//

import UIKit

class InputCell: UITableViewCell {

    let kScreenHeight = UIScreen.main.bounds.size.height
    let kScreenWidth = UIScreen.main.bounds.size.width
    
    var titleLabel:UILabel?
    var valueField:UITextField?
    
    required init?(coder aDecoder:NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override init(style:UITableViewCellStyle, reuseIdentifier:String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.backgroundColor = UIColor.white
        self.setUpUI();
    }
    
    func setUpUI() {
        
        //文字信息
        //titleLabel = UILabel.init()
        //titleLabel?.backgroundColor = UIColor.clear;
        //titleLabel?.frame = CGRect(x:15, y:0, width:200, height:44)
        //titleLabel?.text = ""
        //titleLabel?.textColor = RGB(r: 74, 74, 94)
        //titleLabel?.font = UIFont.systemFont(ofSize: 16)
        //addSubview(self.titleLabel!)
        
        valueField = UITextField.init()
        valueField?.frame = CGRect(x:10, y:0, width:kScreenWidth, height:44)
        valueField?.font = UIFont.systemFont(ofSize: 15)
        valueField?.textColor = RGB(r: 60, 60, 60)
        addSubview(self.valueField!)
    }
    
    //RGB
    func RGB(r:CGFloat,_ g:CGFloat,_ b:CGFloat) -> UIColor{
        return UIColor(red: (r)/255.0, green: (g)/255.0, blue: (b)/255.0, alpha: 1.0)
    }

}
